/*
	Written By Pradipna Nepal
	www.pradsprojects.com

	Copyright (C) 2011 Prads Projects
	Please read COPYING.txt included along with this source code for more detail.
	If not included, see http://www.gnu.org/licenses/
*/

#ifndef LIBEMULATOR_H
#define LIBEMULATOR_H

#include <windows.h>
#include "libEmuCPUCore.h"
#include "resource.h"

#define DEL_PTR(ptr) (delete ptr, ptr = 0)

#define DEBUGGER_COMMAND_INITIALIZE		2001	//Message that tell debugger to initialize

extern CPUCore *cpu;
extern bool startEmulation;
extern HWND hwndDebug;

namespace Emulator {
	BOOL CALLBACK emuWndProc(HWND hwnd, UINT msG, WPARAM wParam, LPARAM lParam);
	void sendInitMessageToDebugger();
}

#endif